package com.shop.service;

import com.shop.entity.Image;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("image-provider")
public interface ImageServiceRest {
    @RequestMapping("getImageByType")
    List<Image> getImageByType(@RequestParam("type") int type);
}
